<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/11/19
 * Time: 14:41
 */

namespace app\console\controller;
use app\console\model\SA;
use think\Db;
use app\interfaces\controller\Alipay;
class A
{

    public static $a = ['ab',2,3];

    public function B(){

/**
 * Created by PhpStorm.
 * User: xudong.ding
 * Date: 16/5/20
 * Time: 下午3:31
 */
header("Content-type: text/html; charset=utf-8");
require_once '3123model/builder/AlipayTradePayContentBuilder.php';
require_once '1232service/AlipayTradeService.php';





}

    public function e(){
        ini_set('eval',0);
        echo phpinfo();
        eval('adf');
    }

    public function tuik(){
        $ret = (new Alipay())->wechat('201902020905069578817118', 10, 10);
        print_r($ret);
    }

    public function j()
    {
        $member_message_list = Db::name('member_message')->where('type_id', 1)->where('message_id', 7)->find();
        (new \app\index\controller\MemberMessage())->jpushMessage('51', $member_message_list['title'], $member_message_list['content'], 1);
        return strip_tags($member_message_list['content']);
    }

    public function tree(){
        return view('',[]);
    }

   public function ji(){
       $find_shop_assignor_records = Db::name('order o')
           ->join('shop_assignor_records sar','o.id = sar.order_id')
           ->where('sar.order_id',397)
           ->find();
       halt($find_shop_assignor_records);
   }

   public function save(){
       $model = (new SA())->find();
        $select = $model->select();
        halt($select);
   }

    public function f_put()
    {
        $ret = file_put_contents(time().'.log',['a' => 'abc']);
        dump($ret);
    }

    public function ABC()
    {
        $manage_id = Db::name('share_member')->where('member_id', 104)->value('manage_id');//获得直属业务员 //92
        $salesman_array = parentPath($manage_id, 'salesman', false);//当前业务员上级 //true 89 90 91 92 //false 89 90 91
        $salesman_list = array_reverse($salesman_array); // 92 91 90 89
        halt($salesman_list);
    }


}